
        <?php
            $_html = "";
            foreach ($registros as $registro) {
                $_html .= "<tr>\n";
                $_html .=       "\t<td>" . $registro->materia . "</td>\n";
                $_html .=       "\t<td>" . $registro->nombre    . "</td>\n";
                $_html .=       "\t<td colspan='2'>" . $registro->promedio    . "</td>\n";
                $_html .= "</tr>\n";
            }
            echo $_html;
        ?>